<template>
  <div>
    <div class="header">
      <div class="header-left">
        <div class="iconfont back-icon">&#xe623;</div>
      </div>
      <div class="header-input">
        <span class="iconfont search-icon">&#xe6a8;</span>
        输入城市/景点/游玩主题
      </div>
      <router-link to="/list">
        <div class="header-right">{{this.city}}
          <span class="iconfont">&#xe61c;</span>
        </div>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    city: String
  }
}
</script>
<style lang="stylus" scoped>
@import '~styles/varibles.styl';

.header {
  height: 1.1rem;
  background-color: $bgColor;
  display: flex;
  color: #fff;

  .header-left {
    float: left;
    width: 0.8rem;
    line-height: 1.1rem;

    .back-icon {
      font-size: 0.6rem;
      text-align: center;
    }
  }

  .header-input {
    flex: 1;
    background: #fff;
    margin-top: 0.2rem;
    height: 0.7rem;
    border-radius: 0.1rem;
    color: #ccc;
    padding-left: 0.2rem;
    line-height: 0.7rem;
    font-size: 0.3rem;
  }

  .header-right {
    float: right;
    text-align: center;
    width: 1.06rem;
    line-height: 1.1rem;
    color: #fff;
  }
}
</style>